package com.wehealth;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;

public class FirstScreen extends Fragment {

	
	public  FirstScreen()
	{
		
	}
	
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

		return  inflater.inflate(R.layout.firstscreen, null);
	}
	
	
	
	public void onActivityCreated(Bundle savedInstanceState){
		super.onActivityCreated(savedInstanceState);
		
		MainActivity activity = (MainActivity)getActivity();
		
		ImageView bGoHome = (ImageView) activity.findViewById(R.id.firestscreen_bg);
			
		bGoHome.setOnClickListener(new View.OnClickListener()
			{
				public void onClick(View v)
				{
                MainActivity activity = (MainActivity) getActivity();                       
                activity.switchContentHome();
				}
			});
		 
	}
}
